#include "ffvdp_ring.h"

ffvdp_ring_t *ffvdp_ring_alloc(uint32_t ring_size) {
    ffvdp_ring_t *r;
    r = calloc(1, sizeof(ffvdp_ring_t) + sizeof(uint8_t *) * ring_size);
    if (!r) {
        return NULL;
    }
    r->ring_size = ring_size;

    return r;
}

void ffvdp_ring_free(ffvdp_ring_t *r) { free(r); }
